<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Order extends CI_Controller
{
	public function __construct()
	{
		parent::__construct();
		$this->load->helper(array('form'));
		$this->load->model('front/Hotel_mdl');
		$this->load->model('front/Hotel_room_mdl');
		$this->load->model('front/City_mdl');
		$this->load->model('front/Price_mdl');
		$this->load->model('front/Frontget_ml');
		$this->load->model('front/Search_m');		
		$this->siteSetings=$this->Frontget_ml->get_site_settings();	//��ȡվ������
		$this->announcement=$this->Frontget_ml->get_announcement();	//��ȡ��վ����		
		$this->lineclass=$this->Frontget_ml->get_lineclass();//��ȡ��·����
		$this->carclass=$this->Frontget_ml->get_carclass();//��ȡ�����
		$this->newsclass=$this->Frontget_ml->get_newsclass();//��ȡ�����
		$this->des_tags=$this->Search_m->get_des_tags();	//��ȡ��ǩ����	
		$this->tagsclass=$this->Frontget_ml->get_tagsclass();//获取攻略分类

		$current_title     = $this->siteSetings["site_description"];
		$this->m_arrPublic =   array("newsclass"=>$this->newsclass,"carclass"=>$this->carclass,"lineclass"=>$this->lineclass,"des_tags"=>$this->des_tags,"current_title"=>$current_title,"siteSetings"=>$this->siteSetings,"tagsclass"=>$this->tagsclass);
		$this->load->library('form_validation');
	}
	
	public function post_hotel_order()
	{
		// TODO:方式一：需要用户注册，用户信息从用户信息表中读取 在此时需要判断是否登录等
		
		// TODO:方式二: 不需要用户注册，提价订单时，弹出一个窗口，需要用户填写相关用户的个人信息  
		// 以下方法从方式二考虑
		
		/** 获取提交的数据 */
		$arrOrderInfo   = array(
            'userName'  =>  $this->input->post('name', TRUE),
            'mail'   	=>  $this->input->post('mail', TRUE),
            'tel'   	=>  $this->input->post('tel', TRUE),
            'qq'        =>  $this->input->post('qq', TRUE),
            'idCard'    =>  $this->input->post('idCard', TRUE),
            'msg'       =>  $this->input->post('msg', TRUE),
        );
			
	}
	
	public function index()
	{
		
	}
}
